//
//  main.m
//  OC5_课后作业第二次
//
//  Created by dllo on 15/10/29.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AddressBook.h"

int main(int argc, const char * argv[]) {

    AddressBook * book = [[AddressBook alloc] init];
    Contact * p1 = [[Contact alloc] initWithName:@"小明" sex:@"男" phonenum: 345 address:@"龙东大道" group:@"同学"];

    [book addPerson:p1];
    [book showAddressBook];
    [book delGroup:@"同学"];
    [book showAddressBook];
    [book bysex:@"女"];
    
    
    
    
    
    return 0;
}
